import i18n from '@src/locales';
import FormCascaderSetting from './FormCascaderSetting.vue';
import FormCascaderPreview from './FormCascaderPreview.vue';
import FormCascader from './FormCascader.vue';
import ProductTypeExtendPathNameBuild from './extend/ProductTypeExtendPathNameBuild.vue';
import ConsultClassSetting from './extend/ConsultClassSetting.vue';

const FormCascaderField = {
  formType: 'cascader',
  name: i18n.t('common.form.type.cascader'),
  isSystem: 0,
  component: {
    setting: FormCascaderSetting,
    preview: FormCascaderPreview,
    build: FormCascader,
    extend: {
      cascader_pathName_search: ProductTypeExtendPathNameBuild,
      product_type_pathName_build: ProductTypeExtendPathNameBuild
    }
  }
}

// 服务备注表单：咨询分类
const ServiceRemarkConsultClassField = {
  formType: 'consultName',
  fieldName: 'consultName',
  name: i18n.t('common.form.type.consultName'),
  previewIcon: 'icon-jieshishuoming',
  isSystem: 1,
  component: {
    preview: FormCascaderPreview,
    build: FormCascader,
    extend: {
      remark_consultName_setting: ConsultClassSetting,
    }
  }
}

export default [
  FormCascaderField,
  ServiceRemarkConsultClassField, // 服务备注表单：咨询分类
];